package com.ysfxt.service;

import com.ysfxt.model.SysTeacher;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ysfxt.result.Result;
import com.ysfxt.vo.TeacherParam;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ysfxt
 * @since 2024-03-29
 */
public interface SysTeacherService extends IService<SysTeacher> {
    
    
    /**
     * 条件查询
     * @param teacherParam
     * @return
     */
    Result select(TeacherParam teacherParam);
    
    /**
     * 账号新增
     * @param sysTeacher
     * @return
     */
    Result saveTeacher(SysTeacher sysTeacher);
    
    /**
     * 导出
     * @param response
     */
    Result exportData(HttpServletResponse response);
    
    /**
     * 导入
     * @param file
     */
    void importData(MultipartFile file);
    
    /**
     * 登录
     * @param sysTeacher
     * @return
     */
    Result login(SysTeacher sysTeacher);
    
    /**
     * 修改密码
     * @param sysTeacher
     * @return
     */
    Result setPassword(SysTeacher sysTeacher);
}
